package com.example.myshop.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.*;

import java.util.Date;
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@EqualsAndHashCode(callSuper = false)
@TableName("t_product")
public class Product {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long categoryId;
    private String itemType;
    private String title;
    private String sellPoint;
    private Long price;
    private Integer num;
    private String image;
    private Integer status;
    private Integer priority;
    private Integer nowSellNum;
    private Integer historySellNum;
    private Integer sellPersons;
    private Integer judgeMark;
    private String sellMethod;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long businessId;
    private String createdUser;
    private Date createdTime ;
    private String  modifiedUser;
    private Date modifiedTime;
}
